﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Editorial/Editor/MasterPage_Editor.master"
    AutoEventWireup="true" CodeBehind="NewsDisplay.aspx.cs" Inherits="Ones.Editorial.Editor.NewsDisplay" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <div class="widget">
                <div class="widget-header">
                    <i class="icon-large icon-list"></i>
                    <h3>
                        News
                    </h3>
                    <%--<div class="dataTables_filter" id="example_filter">
                <label>
                Search:&nbsp;
                </label>
                <input type="text" style="height: 40px; margin-top: 10px; margin-right: 7px;" aria-controls="example">
                </div>--%>
                </div>
                <div class="widget-content">
                    <div class="col-lg-12">
                        <div class="panel">
                            <div class="panel-body">
                                <div class="form-group">
                                    <label for="search-input">
                                        Search type input
                                    </label>
                                    <div class="input-group">
                                        <input id="search-input" class="form-control" type="search">
                                        <span class="input-group-btn">
                                            <button class="btn btn-transparent" type="button">
                                                Search
                                            </button>
                                        </span>
                                    </div>
                                </div>
                                Check Boxes for Search Conditions
                            </div>
                        </div>
                    </div>
                    <div class="example_alt_pagination">
                        <div id="container">
                            <div class="full_width big">
                            </div>
                            <div id="demo">
                                <!--------- CONTENT TABLE ------------->
                                <asp:Repeater ID="rptNewsList" runat="server" OnItemCommand="LinkButton_ItemCommand">
                                    <HeaderTemplate>
                                        <table class="table table-striped table-images">
                                            <thead class="">
                                                <tr>
                                                    <th>
                                                        Title
                                                    </th>
                                                    <th>
                                                        Posted Date
                                                    </th>
                                                    <th>
                                                        Modified Date
                                                    </th>
                                                    <th>
                                                        Published Date
                                                    </th>
                                                    <th>
                                                        Status
                                                    </th>
                                                    <th>
                                                        Author
                                                    </th>
                                                    <th>
                                                        &nbsp;
                                                    </th>
                                                    <th>
                                                        &nbsp;
                                                    </th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%#DataBinder.Eval(Container.DataItem, "newsTitle")%>
                                            </td>
                                            <td>
                                                <%#DataBinder.Eval(Container.DataItem, "postingDate")%>
                                            </td>
                                            <td>
                                                <%#DataBinder.Eval(Container.DataItem, "modificationDate")%>
                                            </td>
                                            <td>
                                                <%#DataBinder.Eval(Container.DataItem, "publishDate")%>
                                            </td>
                                            <td id="tdProcessStatus">
                                                <%#DataBinder.Eval(Container.DataItem, "processStatus")%>
                                            </td>
                                            <td>
                                                <%#DataBinder.Eval(Container.DataItem, "author")%>
                                            </td>
                                            <td class="hidden-xs" width="5%">
                                                <asp:LinkButton ID="btnEEdit" class="icon-edit btn-sm btn-primary" runat="server"
                                                    CommandName="EEditNews" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "newsId")%>'
                                                    UseSubmitBehavior="false" />
                                            </td>
                                            <td class="hidden-xs" width="5%">
                                                <asp:LinkButton ID="btnEDelete" class="icon-trash btn-sm btn-warning" runat="server"
                                                    CommandName="EDeleteNews" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "newsId")%>'
                                                    UseSubmitBehavior="false" OnClientClick = "return confirm('Are you sure you want to delete this news?');" />
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </tbody> </table>
                                    </FooterTemplate>
                                </asp:Repeater>
                                <div class="clearfix">
                                    <div class="pull-right">
                                        <%--<div class="btn-group">
                                    <button data-toggle="dropdown" class="btn btn-sm btn-inverse dropdown-toggle">
                                    &nbsp; Clear &nbsp; <i class="icon-caret-down"></i>
                                    </button>
                                    <ul class="dropdown-menu">
                                    <li><a href="#">Clear</a></li>
                                    <li><a href="#">Move ...</a></li>
                                    <li><a href="#">Something else here</a></li>
                                    <li class="divider"></li>
                                    <li><a href="#">Separated link</a></li>
                                    </ul>
                                    </div>
                                    <button class="btn btn-default btn-sm">
                                    Send to ...
                                    </button>--%>
                                    </div>
                                    <ul class="pagination no-margin">
                                        <li class="disabled"><a href="#">Prev</a> </li>
                                        <li class="active"><a href="#">1</a> </li>
                                        <li><a href="#">2</a> </li>
                                        <li><a href="#">3</a> </li>
                                        <li><a href="#">Next</a> </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphScript" runat="server">
</asp:Content>
